export function toast(message, duration = 2000) {
  const toastEl = document.createElement('div');
  toastEl.className = 'toast-container';
  toastEl.textContent = message;
  document.body.appendChild(toastEl);

  setTimeout(() => {
    document.body.removeChild(toastEl);
  }, duration);
}
